package com.zslibrary.Enum;

import androidx.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public class BoardId {
    public static final int LOCAL_MCU=1;
    public static final int IO_BOARD=2;
    public static final int CUP_BOARD=4;
    public static final int NFC_BOARD=6;

    @IntDef({
            LOCAL_MCU,
            IO_BOARD,
            CUP_BOARD,
            NFC_BOARD
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface BoardAdress{}

    public static String getBoardName(int board){
        switch(board){
            case IO_BOARD:
                return "IO board";

            case CUP_BOARD:
                return "CUP board";

            case NFC_BOARD:
                return "NFC board";

            case LOCAL_MCU:
                return "Local MCU";

            default:
                return "Unknown board";
        }
    }
}
